Skip to content

feat(console): Fleet is a table, and each worker has a page with tabs - #787

Merged
V3RON merged 37 commits into
task/765from
task/766
Oct 21, 2026
Merged

V3RON merged 37 commits into
task/765from
task/766

Conversation

@V3RON

@V3RON V3RON commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #766

Fleet is a table of workers; each worker gets /fleet/<id> with Devices, Warm pool, Host and Events tabs, and a device opens in the drawer. The console reads daemon.mode (ADR 0037 §4). The Fleet filter is kept in ?filter=.

Status

Implement: done (159/159 Chromium console lane) Review: round 2 passed Hardware: n/a Gate: waiting for the stack

Done when

  • pnpm test:console --project=chromium passes (the whole lane, 159 tests, locally), and CI's Console check passes in every browser. CI's every-browser run is checked by the stack's gate. Delivered by e2e/console/workers.spec.ts, views.spec.ts, long-lists.spec.ts, workers-gateway-stops-mid-fetch.spec.ts, ui/src/data/mode.test.ts and the model tests.

Assumptions

  • Assumption: the Use column's "running of limit per platform" — it shows the sum of the platforms' running over the sum of their limits, as today's row does (the Slots group carries the per-platform picture), with no meter under it, since CPU, memory and disk carry the meters.
  • Assumption: where the version of the worker went — the header lists name, state and system only, so the worker's version (today in the header line) is a fact on the Host tab.
  • Assumption: closing the device drawer — it always replaces the drawer's entry with /fleet/<id> plus the same query, so it returns to ?tab=devices however the drawer was opened.
  • Assumption: a worker that is both disconnected and drained shows both banners, in that order.
  • Assumption: choosing a tab replaces the history entry, as the search box does, so Back leaves the page and not the last tab.
  • Assumption: the mode store is created beside the live connection in state/live.tsx (which mounts after sign-in and owns the stream) and read through useDaemonMode, rather than in main.tsx and services.tsx; the behaviour is ADR 0037 §4's.

Review

Spec review: 4 blocking, 4 fixed, 2 notes. Code review: 3 blocking, 3 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 2. Tokens: 39.3M.
Runs: 11. Cost USD: 12.4653. Agent seconds: 7593.
Assessment: complete

Rejected:

  • spec: ?filter= is not in the feature's Shared values — [intentional] it is the only way to keep the Fleet filter across a worker page and back, and it mirrors ?q=.

Written by an agent.

@V3RON

V3RON commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Runs: 11. Cost USD: 12.4653. Agent seconds: 7593.
Tokens input 756, output 256501, cache read 53167262, cache write 1201705.
- build implementer: claude-sonnet-5-5 3284 s $6.5774
- audit implementer: claude-sonnet-5-5 2094 s $1.0141
- review 1 reviewer: claude-sonnet-5-5 626 s $0.2474
- review 1 spec: claude-sonnet-5-5 71 s $0.4099
- review 1 code both: claude-opus-5-5 538 s $2.21
- review 1 claims: claude-sonnet-5-5 137 s $0.3406
- fix 1 implementer: claude-sonnet-5-5 203 s $0.2801
- review 2 reviewer: claude-sonnet-5-5 319 s $0.1658
- review 2 spec: claude-sonnet-5-5 39 s $0.1439
- review 2 code both: claude-opus-5-5 235 s $0.9456
- review 2 claims: claude-sonnet-5-5 47 s $0.1305
Finding outcomes: {"duplicate":1,"fixed":6,"intentional":1}. Classes: {"behaviour not in spec":1,"doc claim false":1,"fleet filter lost on return":1,"testing 10":1,"testing 3":1,"testing 7":3}.
{"findings":[
{"id":"R1","role":"spec","class":"testing 7","outcome":"fixed","path":"ui/src/model/worker-page.test.ts:121,130; ui/src/screens/fleet/fleet.test.tsx:140","fix":"3332ac91"},
{"id":"R2","role":"spec","class":"testing 7","outcome":"fixed","path":"ui/src/model/events.test.ts:158","fix":"3332ac91"},
{"id":"R3","role":"code","class":"testing 3","outcome":"fixed","path":"ui/src/model/worker-page.ts:304","fix":"3332ac91"},
{"id":"R4","role":"code","class":"testing 10","outcome":"fixed","path":"ui/src/screens/fleet/fleet.test.tsx:234","fix":"3332ac91"},
{"id":"R5","role":"code","class":"fleet filter lost on return","outcome":"fixed","path":"ui/src/state/workers.ts:75","fix":"3332ac91"},
{"id":"R6","role":"claims","class":"doc claim false","outcome":"fixed","path":"docs/CONSOLE.md:36","fix":"3332ac91"},
{"id":"R7","role":"spec","class":"behaviour not in spec","outcome":"intentional","path":"ui/src/model/worker-page.ts:110"},
{"id":"R8","role":"spec","class":"testing 7","outcome":"duplicate","canonicalId":"R7","path":"ui/src/model/worker-page.test.ts:128"}
]}

Written by an agent.

@V3RON

V3RON commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

Not blocking, not verified. Each is one reviewer's claim.

  • spec: docs/CONSOLE.md:297-300 mention only ?q=; the Fleet filter is now in the address too.
  • spec: ui/src/model/worker-page.test.ts — the title "keeps the list's page and size on the link…" also asserts q and filter.

Written by an agent.

V3RON added 24 commits October 21, 2026 15:42
…page heading, its state word and system beside it, and the Devices tab selected (#766)
… word, slots group and its label, running of limit, and CPU, memory and disk (#766)
…g: a drained worker and a disconnected one show, a healthy one does not (#766)
…system, ignoring case, keeps ?q=, and clearing it brings every row back (#766)
…the slot legend, and leases card above the tabs (#766)
…st seen … ago, and a drained worker's shows Drained (#766)
…one after a failed one, and reads again after a reconnect (#766)
…he device's model, runtime, state word, and holder and lease when leased; a leased device shows its UDID and an unleased simulator shows no UDID field (#766)
… a single host all of them, and with none it says No events for this worker in the last hour. (#766)
V3RON added 13 commits October 21, 2026 15:42
… a link to Fleet, and an unknown device id shows This device is gone. (#766)
…t and dark; no <style> element or CSP violation on them (#766)
…, the row's meters and the page's banners follow the connection (#766)
…nt is read exactly, and a starting worker names no capacity (#766)
…d unspecified tests, test the UDID and the incompatible overview, fix the device drawer's close claim (#766)
@V3RON
V3RON merged commit 6e52d5d into main Oct 21, 2026
22 of 26 checks passed
@V3RON
V3RON deleted the task/766 branch October 21, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console: Fleet table and a page per worker

1 participant